#ifndef OHOS_SUB_EXAMPLE_DEMO_SERVICE_H
#define OHOS_SUB_EXAMPLE_DEMO_SERVICE_H

#include "demo_stub.h"
#include "system_ability.h"

namespace OHOS{
class DemoService: public SystemAbility, public DemoStub {
DECLARE_SYSTEM_ABILITY(DemoService);

public:
  DemoService(int32_t saId, bool runOnCreate);
  ~DemoService() = default;
  void OnStart() override;
  void OnStop() override;
  int32_t StartRemoteAbility(uint32_t accessToken) override;
};
}
#endif
